/**
 * 
 */
package org.cuatrovientos.listofbrought;

/**
 * The product
 * @author David
 *
 */
public class Product {
	private String name;
	private float cost;
	private int quantity;
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public float getCost() {
		return cost;
	}
	public void setCost(float cost) {
		this.cost = cost;
	}
	public int getQuantity() {
		return quantity;
	}
	public void setQuantity(int quantity) {
		this.quantity = quantity;
	}
	
	/**
	 * @param name
	 * @param cost
	 * @param quantity
	 */
	public Product(String name, int quantity, float cost) {
		super();
		this.name = name;
		this.cost = cost*quantity;
		this.quantity = quantity;
	}
	
	@Override
	public String toString() {
		return "Product [name=" + name + ", cost=" + cost + ", quantity="
				+ quantity + "]";
	}
	
	
}
